<template>
  <a-config-provider :locale="locale">
    <div id="app">
      <router-view />
    </div>
  </a-config-provider>
</template>
<script>
import zhCN from "ant-design-vue/lib/locale-provider/zh_CN";
import enquireScreen from "@/utils/device";
import { Mixin } from "@/mixins/mixin.js";
export default {
  mixins: [Mixin],
  data() {
    return {
      locale: zhCN,
    };
  },

  created() {
    //   console.log()
    enquireScreen((deviceType) => {
      //   console.log(deviceType)
      this.setDeviceType(deviceType);
      if (deviceType === "tablet") {

      } else if (deviceType === "mobile") {
      } else {
        // desktop
      }
    });
  },
};
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;

}
</style>
